package com.tjhk.demo.kafka.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class TestRecord {
    String plateNo;
    @JsonFormat(shape = JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "+08")
    LocalDateTime time;
    String plateColor;
    String vehicleType;
    String emission;
    String channelName;
    String companyName;

    public TestRecord(String plateNo, LocalDateTime time, String plateColor, String vehicleType, String emission, String channelName, String companyName) {
        this.plateNo = plateNo;
        this.time = time;
        this.plateColor = plateColor;
        this.vehicleType = vehicleType;
        this.emission = emission;
        this.channelName = channelName;
        this.companyName = companyName;
    }

    public String getPlateNo() {
        return plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public String getPlateColor() {
        return plateColor;
    }

    public void setPlateColor(String plateColor) {
        this.plateColor = plateColor;
    }

    public String getVehicleType() {
        return vehicleType;
    }

    public void setVehicleType(String vehicleType) {
        this.vehicleType = vehicleType;
    }

    public String getEmission() {
        return emission;
    }

    public void setEmission(String emission) {
        this.emission = emission;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}

